package com.laowang.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import com.laowang.framework.web.domain.PageObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 账户详情对象 tb_account_detail
 *
 * @author laowang
 * @date 2022-12-29
 */
@NoArgsConstructor
@Data
public class TbAccountDetail extends PageObject implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private String detailId;

    /**
     * 关联的用户
     */
    @Excel(name = "关联的用户")
    @ApiModelProperty(value = "关联的用户", required = false)
    private Integer userId;

    /**
     * 变动前金额
     */
    @Excel(name = "变动前金额")
    @ApiModelProperty(value = "变动前金额", required = false)
    private BigDecimal oldBalance;

    /**
     * 变动金额
     */
    @Excel(name = "变动金额")
    @ApiModelProperty(value = "变动金额", required = false)
    private BigDecimal amount;

    /**
     * 变动后金额
     */
    @Excel(name = "变动后金额")
    @ApiModelProperty(value = "变动后金额", required = false)
    private BigDecimal newBalance;

    /**
     * 类型(,1提现,2佣金,3团队消费佣金,4团队管理佣金,5红利中奖,6退款,7酒店房费,0全部)
     */
    @Excel(name = "类型(,1提现,2购买返利,3团队消费佣金,4团队管理佣金,5红利中奖,6退款,7酒店房费,0全部)")
    @ApiModelProperty(value = "类型(,1提现,2佣金,3团队消费佣金,4团队管理佣金,5红利中奖,6退款,7酒店房费,0全部)", required = false)
    private Integer type;

    /**
     * ,1审核中,2成功,3拒绝)
     */
    @Excel(name = ",1审核中,2成功,3拒绝)")
    @ApiModelProperty(value = ",1审核中,2成功,3拒绝)", required = false)
    private Integer status;

    /**
     * 真实姓名
     */
    @Excel(name = "真实姓名")
    @ApiModelProperty(value = "真实姓名", required = false)
    private String realName;

    @ApiModelProperty(value = "备注", required = false)
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;


}
